package meterMonitor.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 工单扫描记录表
 */
@Data
public class LotnumRecPO {
    @ColumnWidth(10)
    @ExcelProperty(value = "序号", index = 0)
    private Integer lotId;

    @ColumnWidth(20)
    @ExcelProperty(value = "料号", index = 1)
    private String partNum;

    @ColumnWidth(20)
    @ExcelProperty(value = "工单号", index = 2)
    private String lotNum;

    @ExcelIgnore
    private Integer quantity;
    @ExcelIgnore
    private Integer lineId;
    @ExcelIgnore
    private Integer upperLimit;
    @ExcelIgnore
    private Integer lowerLimit;
    @ExcelIgnore
    private Timestamp scanTime;

    @ColumnWidth(25)
    @ExcelProperty(value = "时间", index = 3)
    private String scanTimeStr;

    @ExcelIgnore
    private Timestamp endTime;

    @ColumnWidth(15)
    @ExcelProperty(value = "数量", index = 4)
    private Integer actualQuantity;

    @ColumnWidth(15)
    @ExcelProperty(value = "首件/量产", index = 6)
    private String typeShow;   // 生产类型:0表示量产,1表示特殊件

    @ExcelIgnore
    private Integer type;   // 生产类型:0表示量产,1表示特殊件

    @ExcelIgnore
    private Integer userId;
    @ExcelIgnore
    private Integer scrapNum; // 工单生产完成之后的原料报废数量
    @ExcelIgnore
    private Double xianyingSpeed; //显影线线速
    @ExcelIgnore
    private BigDecimal lineWidth; // 线宽
    // private BigDecimal lineSpeed;   // 线速
    @ExcelIgnore
    private BigDecimal lineSpacing; // 线距
    @ExcelIgnore
    private BigDecimal thickness; //铜厚
    @ExcelIgnore
    private String thicknessType; //铜厚类型
    @ExcelIgnore
    private Integer binpcs; // 开始时的PLC中数量
    @ExcelIgnore
    private Integer endpcs; // 结束时的数量

    @ColumnWidth(25)
    @ExcelProperty(value = "蚀刻线速m/min", index = 5)
    private Double shikeSpeed; //shike线速

    @ExcelIgnore
    private String ganmostate; // 干膜槽类型
    @ExcelIgnore
    private Integer nowPcs; // 当前工单数量

    @ColumnWidth(15)
    @ExcelProperty(value = "检测", index = 7)
    private String lotStateShow; // 工单检测状态0代表OK1代表NG

    @ExcelIgnore
    private Integer lotState; // 工单检测状态0代表OK1代表NG

    @ExcelIgnore
    private String lineName;

    @ExcelIgnore
    private String slotName;


    @ColumnWidth(20)
    @ExcelProperty(value = "站别", index = 8)
    private String station;
}
